package com.example.demo.entity;

import java.util.Date;
import java.lang.Double;
import java.math.BigDecimal;
import javax.validation.constraints.NotNull;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.hibernate.validator.constraints.Length;
import java.util.List;
import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.example.demo.entity.BaseCustomEntity;
import com.diboot.core.binding.query.BindQuery;
import com.diboot.core.binding.query.Comparison;
import com.diboot.core.util.D;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * 资产 Entity定义
 * @author MyName
 * @version 1.0
 * @date 2024-03-04
 * Copyright © MyCompany
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("property")
public class Property extends BaseCustomEntity {

    private static final long serialVersionUID = 2025929234617477933L;

    /**
     * type字段的关联字典
     */
    public static final String DICT_PROPERTY = "PROPERTY";

    /**
     * 名字
     */
    @Length(max = 100, message = "名字长度应小于100")
    @TableField()
    private String name;

    /**
     * 类型
     */
    @Length(max = 100, message = "类型长度应小于100")
    @TableField()
    private String type;

    /**
     * 编号
     */
    @Length(max = 100, message = "编号长度应小于100")
    @TableField()
    private String code;

    /**
     * 使用人
     */
    @TableField()
    private Long iamUserId;

    /**
     * 数量
     */
    @TableField()
    private Integer quantity;

    /**
     * 创建人
     */
    @TableField(fill = FieldFill.INSERT)
    private Long createBy;

    /**
     * 更新人
     */
    @TableField(fill = FieldFill.UPDATE)
    private Long updateBy;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.UPDATE)
    private Date updateTime;
}
